git-iconv-Support-in-place-conversions-bug-10460-bug-320
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Wed, 22 Jan 2025 22:57:51 +0000 (23:57 +0100)
committerAurelien Jarno <aurel32@debian.org>
Wed, 22 Jan 2025 22:57:51 +0000 (23:57 +0100)
commitada07739b8851789570f37785916b8bf55b314dd
treeacc9be3696ebea846e3ca4d5ed5f9f9055751738
parent0ea20cf3afe6ef35996f1f6e34a76f48a717b439
git-iconv-Support-in-place-conversions-bug-10460-bug-320

commit f432d9495d428eef0455376e4de666d0a6748040
Author: Florian Weimer <fweimer@redhat.com>
Date:   Fri Sep 20 13:10:54 2024 +0200

    iconv: Support in-place conversions (bug 10460, bug 32033)

    Check if any of the input files overlaps with the output file, and use
    a temporary file in this case, so that the input is no clobbered
    before it is read.  This fixes bug 10460.  It allows to use iconv
    more easily as a functional replacement for GNU recode.

    The updated output buffer management truncates the output file
    if there is no input, fixing bug 32033.

Reviewed-by: DJ Delorie <dj@redhat.com>
Gbp-Pq: Topic any
Gbp-Pq: Name git-iconv-Support-in-place-conversions-bug-10460-bug-320.patch
iconv/Makefile
iconv/iconv_prog.c
iconv/tst-iconv_prog-buffer.sh